package psrc.logic.pages.rede;

import java.util.ArrayList;
import java.util.List;

import psrc.logic.pages.base.ControllerBase;
import psrc.logic.util.beans.RedeBean;

public class LoadRedeSeeController extends ControllerBase {

	private static final long serialVersionUID = 1L;

	List<RedeBean> redes = new ArrayList<RedeBean>();
	
	@Override
	public String executeController() throws Exception {
		RedeModel model = new RedeModel();
		try{
			this.redes = model.getRedesList();
		} catch (Exception e) {
			return "genericError";
		}
		return SUCCESS;
	}
	
	public List<RedeBean> getRedes() {
		return redes;
	}

	public void setRedes(List<RedeBean> redes) {
		this.redes = redes;
	}


}
